﻿ 
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="PlugNT.Cms.Web.Home.Default"%>

<%@ Register Src="Control/Head.ascx" TagName="Head" TagPrefix="uc1" %>
<%@ Register Src="Control/Foot.ascx" TagName="Foot" TagPrefix="uc2" %>
<%@ Register Src="Control/Style.ascx" TagName="Style" TagPrefix="uc4" %>
<%@ Register Src="Control/LeftContent.ascx" TagName="LeftContent" TagPrefix="uc6" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0cc Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type " content="text/html;   charset=utf-8 " />
    <title>
        <%=enterprise!=null?enterprise.Name:user.CompanyName%>
        - 首页</title>
    <uc4:Style ID="Style1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
        <uc1:Head ID="Head2" runat="server" />
        <div class="base">
            <div class="container">
                <ul class="navigation mb10">
                    <li class="first"><strong>您现在的位置：</strong><%=enterprise.Name %></li>
                    <li>首页</li>
                </ul>
                <div class="rows clearfix"> 
                    <uc6:LeftContent ID="LeftContent" runat="server" />
                    <div class="main cols">
                        <div class="mod mb10">
                            <div class="hd">
                                <h3>公司介绍</h3>
                            </div>
                            <div class="bd clearfix">
                                <div class="photo">
                                    <img src="/CreateMiniImage.ashx?path=<%=enterprise.Logo%>&h=150&w=200&t=cut" alt="<%=enterprise.Name %>"
                                        width="200">
                                </div>
                                <p>
                                    <%=FJASPX.Framwork.Helper.StringHelper.CutString(enterprise.Description==null?"":enterprise.Description,500)%>
                                </p>
                            </div>
                        </div>
                        <div class="mod mb10">
                            <div class="hd">
                                <h3>产品橱窗</h3>
                            </div>
                            <div class="bd">
                                <ul class="ul-list clearfix">
                                    <%int count = 1; %>
                                    <% foreach (var model in getProduct())
                                       { %>
                                    <% if (count % 4 == 1)
                                       {%>
                                    <li class="first">
                                        <% }
                                       else
                                       {%>
                                    <li>
                                        <%}%>
                                        <div class="pic">
                                            <a title="<%=model.Name%>" href="/Home/Show.aspx?User=<%=user.Id%>&Id=<%=model.Id%>"
                                                target="_blank">
                                                <img alt="<%=model.Name%>" src="/CreateMiniImage.ashx?path=<%=model.Images%>&h=150&w=150&t=cut" width="150" /></a>
                                        </div>
                                        <div class="name">
                                            <a title="<%=model.Name%>" href="/Home/Show.aspx?User=<%=user.Id%>&Id=<%=model.Id%>"
                                                target="_blank"><%=model.Name%></a><strong> <%=model.Price%></strong>
                                        </div>
                                    </li>
                                    <%count++; %>
                                    <%}%>
                                </ul>
                            </div>
                        </div>
                        <div class="mod mb10">
                            <div class="hd">
                                <h3>最新供应</h3>
                            </div>
                            <div class="bd">
                                <ul class="ul-list clearfix">
                                    <%int count1 = 1; %>
                                    <% foreach (var model in GetSupply())
                                       { %>
                                    <% if (count1 % 4 == 1)
                                       {%>
                                    <li class="first">
                                        <% }
                                       else
                                       {%>
                                    <li>
                                        <%}%>
                                    <li class="first">
                                        <div class="pic">
                                            <a title="<%=model.Title%>" href="/<%=model.Id%>"
                                                target="_blank">
                                                <img alt="<%=model.Title%>" src="/CreateMiniImage.ashx?path=<%=model.Id%>&h=150&w=150&t=cut"></a>
                                        </div>
                                        <div class="name">
                                            <a title="<%=model.Title%>" href="<%=model.Id%>"
                                                target="_blank"><%=model.Title%></a>
                                        </div>
                                    </li>
                                    <%count1++; %>
                                    <%}%>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <uc2:Foot ID="Foot1" runat="server" />
    </form>
</body>
</html>
